<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="bean.Company" %>
<%@ page import="dao.CompanyDao" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <%      String comid=request.getParameter("comid");
            CompanyDao cdao=new CompanyDao();
            List<Company> list=cdao.findById(comid);         
            String companyName=list.get(0).getCompanyName();
            String classes=list.get(0).getClasses();
            String scale=list.get(0).getScale();
            String attention=list.get(0).getAttention();
            String adapter=list.get(0).getAdapter();
            String area=list.get(0).getArea();
           %>
        <title>修改企业信息</title>
    
	     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		 <link href="<%=request.getContextPath() %>/css/SonPage.css" rel="stylesheet" type="text/css">
         <link href="<%=request.getContextPath() %>/css/Element.css" rel="stylesheet" type="text/css">
         <link href="<%=request.getContextPath() %>/css/easyui.css" rel="stylesheet" type="text/css">
         <link href="<%=request.getContextPath() %>/css/icon.css" rel="stylesheet" type="text/css">
         <script src="<%=request.getContextPath() %>/js/Mtopt_1.1.js" type="text/javascript"></script>
         <script src="<%=request.getContextPath() %>/js/SonPage.js" type="text/javascript"></script>
         <script src="<%=request.getContextPath() %>/js/jquery-1.8.3.js" type="text/javascript"></script>
         <script src="<%=request.getContextPath() %>/js/jquery.easyui.min.js" type="text/javascript"></script>
         <script src="<%=request.getContextPath() %>/js/easyui-lang-zh_CN.js" type="text/javascript"></script>

  </head>
  
  <body>

		<div class="DivShowData panel-noscroll">
        <div class="panel datagrid" style="width: 1180px;">
        	<div class="panel-header" style="width: 1168px;">
        		<div class="panel-title">企业基本信息</div>
        		<div class="panel-tool"></div>
        	</div>
        </div>
        </div>
        	<div class="datagrid-wrap panel-body" title="" style="width: 1178px; height: 571px;">
        		<div class="datagrid-toolbar"></div>
        		<div class="datagrid-view" style="width: 1178px; height: 542px;">
        			<style type="text/css">
						div.datagrid-cell-c1-PolluteSourceNo {width:undefinedpx;}
						div.datagrid-cell-c1-PolluteSourceName {width:92px;}
						div.datagrid-cell-c1-GroupName {width:72px;}
						div.datagrid-cell-c1-TypeName {width:32px;}
						div.datagrid-cell-c1-IndustryName {width:92px;}
						div.datagrid-cell-c1-OperateScaleName {width:52px;}
						div.datagrid-cell-c1-AttentionName {width:32px;}
						div.datagrid-cell-c1-TakeoverName {width:32px;}
						div.datagrid-cell-c1-PleaceName {width:52px;}
						div.datagrid-cell-c1-9 {width:12px;}
					</style>
<div class="datagrid-view2" style="width: 1178px;">
		<div class="datagrid-header" style="width: 1178px;">
			<div class="datagrid-header-inner" style="display: block;">
			      <form action="<%=request.getContextPath()%>/updateComServlet" method="post">
				<table class="datagrid-htable"border="0" cellspacing="0" cellpadding="0" style="height: 50px;">
					<tbody>
					<tr>
					   <td><input type="hidden" value="<%=comid%>" id="id" name="id"></td>
					</tr>
					<tr>
					    <td>企业名称：</td>
						<td><input type="text" value="<%=companyName %>" id="companyName" name="companyName"></td>
					</tr>
					<tr>
						<td>行         业：</td>
						<td><input type="text" value="<%=classes%>" id="classes" name="classes"></td>
					</tr>
					<tr>
						<td>规          模：</td>
						<td><input type="text" value="<%=scale %>" id="scale"name="scale"></td>
					</tr>
					<tr>
						<td>关          注：</td>
						<td><input type="text" value="<%=attention %>" id="Attention" name="Attention"></td>
					</tr>
					<tr>
						<td>接           管：</td>
						<td><input type="text" value="<%=adapter %>" id="Adapter" name="Adapter"></td>
					</tr>
					<tr>
						<td>地           区：</td>
						<td>
							<select class="SelectDefault" id="Area" name="Area" style="width:200px;">
                            <option value="全部">全部</option>
                            <option value="小店区">小店区</option><option value="迎泽区">迎泽区</option>
                            <option value="杏花岭区">杏花岭区</option><option value="尖草坪区">尖草坪区</option>
                            <option value="万柏林区">万柏林区</option><option value="晋源区">晋源区</option>
                            </select>
						</td>
					</tr>
					<tr>
						<td><input type="submit" name="yes" value="修改" style="width: 100px;"></td>
					    <td><input type="button" name="cancel" value="取消" style="width: 100px;"onclick="window.location.href='user/EnterpriseManage.jsp';"></td>
					</tr>
					</tbody>
				</table>
				</form>
				</div>
			</div>
		</div>
	</body>
</html>
